/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package photoshare.dto;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author PhotoShare
 */
public class AlbumDTO implements Serializable {

    private Integer albumId;
    private String name;
    private String description;
    private String dateCreate;

    public AlbumDTO() {
    }

    public AlbumDTO(Integer albumId) {
        this.albumId = albumId;
    }

    public AlbumDTO(Integer albumId, String name, String dateCreate) {
        this.albumId = albumId;
        this.name = name;
        this.dateCreate = dateCreate;
    }

    public AlbumDTO(Integer albumId, String name, String description, String dateCreate) {
        this.albumId = albumId;
        this.name = name;
        this.description = description;
        this.dateCreate = dateCreate;
    }
    

    public Integer getAlbumId() {
        return albumId;
    }

    public void setAlbumId(Integer albumId) {
        this.albumId = albumId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDateCreate() {
        return dateCreate;
    }

    public void setDateCreate(String dateCreate) {
        this.dateCreate = dateCreate;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (albumId != null ? albumId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AlbumDTO)) {
            return false;
        }
        AlbumDTO other = (AlbumDTO) object;
        if ((this.albumId == null && other.albumId != null) || (this.albumId != null && !this.albumId.equals(other.albumId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dto.Albums[albumId=" + albumId + "]";
    }
}
